package cn.com.connected.dto;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 公告
 * 
 * @author sms
 * @email sms@live.com
 * @date 2022-10-31 14:09:14
 */
@Data
@ApiModel(description = "公告")
public class SysPublicDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "请输入 学校 ID 如果为空则为全部发放")
    @ApiModelProperty(value = "学校 ID 如果为空则为全部发放")
    private String schoolId;

    @NotEmpty(message = "请输入 标题")
    @ApiModelProperty(value = "标题")
    private String title;

    @NotEmpty(message = "请输入 内容")
    @ApiModelProperty(value = "内容")
    private String content;

    @NotEmpty(message = "请输入 跳转页面")
    @ApiModelProperty(value = "跳转页面")
    private String page;

    @NotEmpty(message = "请输入 关联ID")
    @ApiModelProperty(value = "关联ID")
    private String relId;

    @NotNull(message = "请输入 消息类型 dict: publicType")
    @ApiModelProperty(value = "消息类型 dict: publicType")
    private Integer publicType;

    @NotNull(message = "请输入 排序 默认为0")
    @ApiModelProperty(value = "排序 默认为0")
    private Integer sort;

}